{{template "_head.html" .}}

<div class="timeline">
    {{ if .Tasks}} {{range $key, $value := .Tasks}}
    <div class="note">
        <p class="noteHeading">{{$value.Title}}</p> <span class="toggle glyphicon glyphicon-resize-full"></span>
        <span class="noteContent">{{$value.ContentHTML}}</span>
        <span class="notefooter">
            <ul class="menu">
                <li role="presentation">优先级: {{$value.Priority}}</li>
                <li role="presentation">
                    <span class="glyphicon glyphicon-time"></span> {{$value.Created}}</li>
                <li role="presentation">
                    <a role="menuitem" tabindex="-1" href="/trash/{{.Id}}">
                        <span class="glyphicon glyphicon-trash"></span></a>
                </li>
                <li role="presentation">
                    <a role="menuitem" tabindex="-1" href="/incomplete/{{.Id}}">
                       <span class="glyphicon glyphicon-eye-close"></span>
                    </a>
                </li>
                <li role="presentation">
                    <a href="/category/{{$value.Category}}"> {{$value.Category}}</a>
                </li>   
            </ul>
        </span>
    </div>
    {{end}} {{else}}
    <div class="note">
        <p class="noteHeading">没有任何任务</p>
        <p class="notefooter">返回首页<a href="/">here</a> </p>
    </div>
    {{end}}
</div>
{{template "_footer.html"}}

</body>

</html>
